// import React from 'react'
import { NavBar } from 'antd-mobile'
import {useNavigate} from 'react-router-dom'


const YaoPinNavBar = () => {
  const nav = useNavigate();

  const back = () =>
  nav(-1)

  return (
    <>
        <NavBar
          onBack={back}
        >
          产品详情
        </NavBar>
  
    </>
  )
}

export default YaoPinNavBar